home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / art&graf.ix / art-3488 / macros / demo9.aim < prev    next >
Text File  |  1990-10-13  |  768b  |  19 lines

  1. * demo of image analysis
  2. *
  3. read cermet a        * read cermet image
  4. clear b              * clear the bitplanes
  5. thr                  * theshold the image (using defaults)
  6. inv 1                * make objects white (default: image B)
  7. propag 511,2,1,8,1,b * propagate the edge
  8. exor 1,2,1           * remove object connected to the edge
  9. bcopy 1 2 b b        * make a mask bitplane
  10. ero 3 1 6 0 b        * remove small objects
  11. propag 100 1 2 6 0 b * propagate the remaining objects
  12. measure              * measure the white objects
  13. don 2                * automatic stretching
  14. label b,c,1,8        * "label" the objects
  15. don                  * back to normal display
  16.                      * .. effective at the next
  17.                      * .. display operation
  18.  
  19.